<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="https://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>版本记录列表 - Powered By ${systemConfig.systemName}</title>  <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
    <meta name="Author" content="E-SHOP Team" />
    <meta name="Copyright" content="E-SHOP" />
    <link rel="icon" href="/template/pc1/images/wmh_favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" type="text/css" href="${base}/res/plugins/kindeditor-4.1.10/themes/default/default.css?v=2014-05-21" />
    <link href="${base}/res/css/common.css" rel="stylesheet" type="text/css" />
    <% include("/_view/common/include.html"){}%>
    <script type="text/javascript" src="${base}/res/plugins/kindeditor-4.1.10/kindeditor-min.js?v=2014-05-21"></script>
    <script type="text/javascript" src="${base}/res/plugins/kindeditor-4.1.10/lang/zh_CN.js?v=2014-05-21"></script>
    <script type="text/javascript" src="${base}/res/plugins/kindeditor-4.1.10/smimage.js"></script>
    <script type="text/javascript" src="${base}https://static.9hive.cn/global/vendor/layer/layer.js"></script>

    <style type="text/css">

        *, :before, :after {
            -webkit-box-sizing: border-box;
            box-sizing: content-box;
        }
    </style>
    <%
    var isAdd = false;
    var isEdit = false;
    if(isEmpty(versionRecord.id)){
    isAdd = true;
    }else{
    isEdit = true;
    }%>
</head>
<body>
    <div class="path">
        系统设置 &raquo; <%if(isAdd){%>添加版本记录<%}else{%>编辑版本记录<%}%>
    </div>
    <form id="inputForm" class="am-form" action="<%if(isAdd){%>${base}/shop/versionrecord/save<%}else{%>${base}/shop/versionrecord/update<%}%>" method="post" onsubmit="return check()">
        <input type="hidden" name="versionRecord.id" value="${versionRecord.id!}" />
        <table class="input tabContent">
            <tr>
                <th>
                    更新内容:
                </th>
                <td>
                    <textarea name="versionRecord.content" id="content" rows="10" cols="40">${versionRecord.content!}</textarea>
                    <label class="requireField">*</label>
                </td>
            </tr>
            <tr>
                <th>
                    更新人:
                </th>
                <td>
                    <input type="text" name="versionRecord.operator" id="operator" class="formText" value="${versionRecord.operator!}" />
                </td>
            </tr>
        </table>
        <div class="buttonArea" style="margin-left: 165px;margin-top: 5px;">
            <input type="submit" id="submitbutton" class="button"  value="确  定" hidefocus="true" />&nbsp;&nbsp;&nbsp;&nbsp;
            <input type="button" class="button" onclick="window.history.back(); return false;" value="返  回" hidefocus="true" />
        </div>
    </form>
</body>
<script>
    function check(){
        var content=$("#content").val();
        var operator=$("#operator").val();
        if(!content){
            layer.msg("请输入更新内容!");
            return false;
        }
        if(!operator){
            layer.msg("请输入操作者!");
            return false;
        }
    }

</script>
</html>